package com.east.utils;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

@AllArgsConstructor
public enum CodeEnum {

    OK(200, "成功"),

    FAIL(500, "失败"),


    LOGIN_JWT_IS_EMPTY(901, "请求jwt为空，请重新登录"),

    LOGIN_JWT_IS_ILLEGAL(902, "请求jwt不合法，请重新登录"),

    LOGIN_JWT_IS_EXPIRE(903, "请求jwt已过期，请重新登录"),

    LOGIN_JWT_NO_MATCH(904, "请求jwt不正确，请重新登录"),
    LOGOUT_OK(200, "退出登录成功"),
    DELETE_OK(200, "删除用户成功"),
    ADD_USER_OK(200, "增加用户成功"),
    UPDATE_USER_OK(200, "修改用户成功")
    ;

    @Getter
    @Setter
    private int code;

    @Getter
    @Setter
    private String msg;
}

